/*
 * triangle.cpp
 *
 *  Created on: 27 Nis 2012
 *      Author: hframe
 */

#include "triangle.h"

startnamespace(androidplus)
startnamespace(ui)
startnamespace(widget)

triangle::triangle(drawing::point first,drawing::point second,drawing::point third)
:first_point(first),second_point(second),third_point(third)
{
   vertices=new float[9];
   vertices[0]=  first_point.x;
   vertices[1]=first_point.y;
   vertices[2]=first_point.z;
   vertices[3]=  second_point.x;
   vertices[4]=second_point.y;
   vertices[5]=second_point.z;
   vertices[6]=  third_point.x;
   vertices[7]=third_point.y;
   vertices[8]=third_point.z;

   vertices_n=9;
   indices=new t_uint8[3];
   indices[0]=0;
   indices[1]=1;
   indices[2]=2;
  indices_n=3;

}



triangle::~triangle() {

}




endnamespace(widget)
endnamespace(ui)
endnamespace(androidplus)
